package com.aier.common.service;


public interface ISysPhoneMessageService {
    
    //发送短信
    void insertSendPhoneMessage(String phone,String message);
    
    //账号2
    void insertSendPhoneMessage2(String phone, String message);
    
    //接收短信
    void insertGetPhoneMessage(String phone,String message);

    // 学校发送短信 
    boolean insertSchoolPhoneMessage(String phone, String message, Integer sid,Long uid,Integer type,Long relativeid);
    
    // 学校发送短信(网信通)
    boolean insertSchoolPhoneMessageMobile(String phone, String message, Integer sid,Long uid,Integer type,Long relativeid);

    //查询当月已经发给该家长的短信条数
    int countUserPhoneMessageNum(Long uid, Integer sid);

    //查询用户今天是否在有效期内
    int countUserEdateNum(Long uid);

    /**
     * 根据学校id查询学校的付费方式
     * @param sid
     * @return
     */
    int searchSchoolBuyMethodBySid(Integer sid);
    
    /**
     * 修改学校剩余短信数量
     * @param sid
     * @return
     */
    int updateSchoolMessageCount(Integer sid);
    
    /**
     * 修改教师剩余短信数量
     * @return
     */
    int updateTeacherMessageCount(Long tid,Integer size); 
}
